import request from '@/utils/request'
// 分页查询
export function page(query) {
  return request({
    url: '/business/stock/getByIdAndStockId',
    method: 'post',
    data: query
  })
}

// 查询参数详细
export function getById(id) {
  return request({
    url: '/business/agent/' + id,
    method: 'get'
  })
}
// 新增或添加
export function addOrUpdate(data) {
  return request({
    url: '/business/agent/addOrUpdate',
    method: 'post',
    data: data
  })
}
// 删除参数配置
export function deleteById(id) {
  return request({
    url: '/business/agent/' + id,
    method: 'delete'
  })
}